<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<body>

<h1>Spring Boot file upload example</h1>

<form method="POST" action="/upload" enctype="multipart/form-data">
    <input type="file" name="file" /><br/><br/>
    <input type="submit" value="Submit" />
</form>

    <input type="button" value="下载" onclick="downFile()" />

</body>
<script>

    function downFile(){
        window.location.href='http://127.0.0.1:8080/downFile';
    }
</script>

</html>
